<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title></title>
    [#include "/admin/include/admin_static.htm"]
    [#import "/admin/include/admin_pagination.ftl" as p/]
    <script type="text/javascript">
        $(function() {
            $("#query").click(function() {
                $("#searchForm").attr("action","${path}/admin/cash/list.aspx").submit();
            });

            $("#export").click(function() {
                $("#searchForm").attr("action","${path}/admin/cash/exportCashList.aspx").submit();
            });
        });
    </script>
    </head>
    <body>
        <div class="main_admin_content">
            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                <legend>提现列表</legend>
            </fieldset>
            <form id="searchForm" method="post" action="${path}/admin/cash/list.aspx">
            <table class="search_table_div">
                <tr>
                	<td class="column">审核状态：</td>
                	<td>
					[@u.select list={"":"全部","0":"申请中","1":"通过","-1":"失败"}
					name="status" value="${(status)!'0'}" /]
                	</td>
                    <td class="column">用户ID：</td>
                    <td><input type="text" onkeyup="value=value.replace(/[^\d]/g,'')" name="userId" value="${userId }" /></td>
                    <td class="column">用户名：</td>
                    <td><input type="text" name="userName" value="${userName }" /></td>
                    <td class="column">日期：</td>
                    <td>
                        <input type="text" onclick="WdatePicker();" value="${begin_date }"
                         name="begin_date" class="short" readonly="readonly" />
                        <i>至</i>
                        <input type="text" onclick="WdatePicker();" value="${end_date }"
                         name="end_date" class="short" readonly="readonly" />
                    </td>
                </tr>
                <tr>
                    <th colspan="100" class="btn_td">
                        <input id="export" type="button" class="layui-btn" style="float:left;width: 100px; heigth: 30px; line-height: 30px" value="导出">
                        <input id="query" type="button"  class="layui-btn" value="查询"/>
                        <input onclick="resent();" type="button"  class="layui-btn" value="清空"/>
                    </th>
                </tr>
            </table>
            </form>

            <table class="layui-table">
                <colgroup>
                    <col width="50">
                    <col width="80">
                    <col width="80">
                    <col width="80">
                    <col width="80">
                    <col width="80">
                    <col width="80">
                    <col width="80">
                    <col width="80">
                    <col width="80">
                    <col width="80">
                    <col width="80">
                    <col width="80">


                </colgroup>
                <thead>
                <tr>
  					<th>用户ID</th>
                    <th>用户名称</th>
                    <th>真实姓名</th>
                    <th>提现编号</th>
                    <th>提现账号</th>
            		<th>提现银行</th>
            		<th>支行</th>
	            	<th>提现总额</th>
                    <th>操作</th>
	            	<th>申请时间</th>
	            	<th>状态</th>
                </tr>
                </thead>
				[#list cashs as cash]

					<tr>
						<td>${cash.user_id}</td>
						<td> ${cash.u_user_name}</td>
						<td>${cash.real_name}</td>
						<td>${cash.id }</td>
		            	<td>${cash.crad_no}</td>
		            	<td>${cash.bank}</td>
		            	<td>${cash.branch}</td>

		            	<td>￥${cash.total}</td>


                        <td>
                            [#if cash.status==0]
                                <input type="button" value="审核" onclick="window.location.href='${path}/admin/cash/${cash.id}.aspx'"  class="layui-btn "/>
                            [#else]
                                [#if cash.status==1]
                                审核通过
                                [#else]
                                    审核未通过
                                [/#if]
                            [/#if]
                        </td>
						<td>  ${p2p_date_format(cash.addtime ,"yyyy-MM-dd HH:mm:ss")} </td>
						<td>
							[#if cash.status==0]
                                申请中
							[#elseif cash.status==1]
                                审核通过
							[#else]
                                审核未通过
							[/#if]
						</td>

					</tr>
[/#list]
                
            </table>

		[@p.pager pager = page parameterMap={"status":"${status}","userName":"${userName }","userId":"${userId }","begin_date":"${begin_date }","end_date":"${end_date }"}   url = "${path}/admin/cash/list.aspx"/]

        </div>
    </body>
</html>